package com.java.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.java.service.GuidanceService;
import com.java.util.resp.TableRespone;

@RestController
@RequestMapping("/admin")
public class GuidanceController {

	@Autowired GuidanceService guidanceService;
	
	@PostMapping("/getGuidances")
	public TableRespone getGuidances(
			@RequestParam(required = false, defaultValue = "0") int page,
			@RequestParam(required = false, defaultValue = "0") int size) {
		return guidanceService.getGuidances(page, size);
	}
}
